package org.xiaolicode.learn.rabbitmq.consumer.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 小李Code
 */
@Slf4j
@Component
@RabbitListener(queues = "test.queue")
public class consumer02 {

    @RabbitHandler
    public void test2(String msg) {
        log.info("开始消费2：{}", msg);
    }
}
